package main

import (
	"fmt"

	"roger.com/test-compress/compress"
	"roger.com/test-compress/enccompress"
)

func onlyCompress(path string) error {
	err := compress.Gzip(path)
	return err
}

func encCompress(path string, key []byte) error {
	err := enccompress.EncCompress(path, key)
	return err
}

func main() {
	path := "./052-1520308273623-toan-m-23"
	key := []byte("1234567812345678")
	fmt.Println("path:", path, "key:", key)

	//err := onlyCompress(path)
	err := encCompress(path, key)
	fmt.Println(err)
}
